Method and apparatus to provide safety checks for neural stimulation

ABSTRACT

In electrically stimulating neural tissue it is important to prevent over stimulation and unbalanced stimulation which would cause damage to the neural tissue, the electrode, or both. It is critical that neural tissue in not subjected to any direct current or alternating current above a safe threshold. Further, it is important to identify defective electrodes as continued use may result in neural and further electrode damage. The present invention presents system and stimulator control mechanisms to prevent damage to neural tissue.

GOVERNMENT RIGHTS NOTICE

This invention was made with government support under grant No. R24EY12893-01, awarded by the National Institutes of Health. The government has certain rights in the invention.

FIELD OF THE INVENTION

The present invention is generally directed to neural stimulation and more specifically to an improved method of providing safety checks to prevent neural damage.

BACKGROUND OF THE INVENTION

In 1755 LeRoy passed the discharge of a Leyden jar through the orbit of a man who was blind from cataract and the patient saw “flames passing rapidly downwards.” Ever since, there has been a fascination with electrically elicited visual perception. The general concept of electrical stimulation of retinal cells to produce these flashes of light or phosphenes has been known for quite some time. Based on these general principles, some early attempts at devising a prosthesis for aiding the visually impaired have included attaching electrodes to the head or eyelids of patients. While some of these early attempts met with some limited success, these early prosthetic devices were large, bulky and could not produce adequate simulated vision to truly aid the visually impaired.

In the early 1930's, Foerster investigated the effect of electrically stimulating the exposed occipital pole of one cerebral hemisphere. He found that, when a point at the extreme occipital pole was stimulated, the patient perceived a small spot of light directly in front and motionless (a phosphene). Subsequently, Brindley and Lewin (1968) thoroughly studied electrical stimulation of the human occipital (visual) cortex. By varying the stimulation parameters, these investigators described in detail the location of the phosphenes produced relative to the specific region of the occipital cortex stimulated. These experiments demonstrated: (1) the consistent shape and position of phosphenes; (2) that increased stimulation pulse duration made phosphenes brighter; and (3) that there was no detectable interaction between neighboring electrodes which were as close as 2.4 mm apart.

As intraocular surgical techniques have advanced, it has become possible to apply stimulation on small groups and even on individual retinal cells to generate focused phosphenes through devices implanted within the eye itself. This has sparked renewed interest in developing methods and apparatuses to aid the visually impaired. Specifically, great effort has been expended in the area of intraocular retinal prosthesis devices in an effort to restore vision in cases where blindness is caused by photoreceptor degenerative retinal diseases such as retinitis pigmentosa and age related macular degeneration which affect millions of people worldwide.

Neural tissue can be artificially stimulated and activated by prosthetic devices that pass pulses of electrical current through electrodes on such a device. The passage of current causes changes in electrical potentials across visual neuronal membranes, which can initiate visual neuron action potentials, which are the means of information transfer in the nervous system.

Based on this mechanism, it is possible to input information into the nervous system by coding the information as a sequence of electrical pulses which are relayed to the nervous system via the prosthetic device. In this way, it is possible to provide artificial sensations including vision.

One typical application of neural tissue stimulation is in the rehabilitation of the blind. Some forms of blindness involve selective loss of the light sensitive transducers of the retina. Other retinal neurons remain viable, however, and may be activated in the manner described above by placement of a prosthetic electrode device on the inner (toward the vitreous) retinal surface (epiretial). This placement must be mechanically stable, minimize the distance between the device electrodes and the visual neurons, and avoid undue compression of the visual neurons.

In 1986, Bullara (U.S. Pat. No. 4,573,481) patented an electrode assembly for surgical implantation on a nerve. The matrix was silicone with embedded iridium electrodes. The assembly fit around a nerve to stimulate it.

Dawson and Radtke stimulated cat's retina by direct electrical stimulation of the retinal ganglion cell layer. These experimenters placed nine and then fourteen electrodes upon the inner retinal layer (i.e., primarily the ganglion cell layer) of two cats. Their experiments suggested that electrical stimulation of the retina with 30 to 100 uA current resulted in visual cortical responses. These experiments were carried out with needle-shaped electrodes that penetrated the surface of the retina (see also U.S. Pat. No. 4,628,933 to Michelson).

The Michelson '933 apparatus includes an array of photosensitive devices on its surface that are connected to a plurality of electrodes positioned on the opposite surface of the device to stimulate the retina. These electrodes are disposed to form an array similar to a “bed of nails” having conductors which impinge directly on the retina to stimulate the retinal cells. U.S. Pat. No. 4,837,049 to Byers describes spike electrodes for neural stimulation. Each spike electrode pierces neural tissue for better electrical contact. U.S. Pat. No. 5,215,088 to Norman describes an array of spike electrodes for cortical stimulation. Each spike pierces cortical tissue for better electrical contact.

The art of implanting an intraocular prosthetic device to electrically stimulate the retina was advanced with the introduction of retinal tacks in retinal surgery. De Juan, et al. at Duke University Eye Center inserted retinal tacks into retinas in an effort to reattach retinas that had detached from the underlying choroid, which is the source of blood supply for the outer retina and thus the photoreceptors. See, e.g., E. de Juan, et al., 99 Am. J. Ophthalmol. 272 (1985). These retinal tacks have proved to be biocompatible and remain embedded in the retina, and choroid/sclera, effectively pinning the retina against the choroid and the posterior aspects of the globe. Retinal tacks are one way to attach a retinal array to the retina. U.S. Pat. No. 5,109,844 to de Juan describes a flat electrode array placed against the retina for visual stimulation. U.S. Pat. No. 5,935,155 to Humayun describes a retinal prosthesis for use with the flat retinal array described in de Juan.

SUMMARY OF THE INVENTION

In electrically stimulating neural tissue it is important to prevent over stimulation and unbalanced stimulation which would cause damage to the neural tissue, the electrode, or both. It is critical that neural tissue in not subjected to any direct current or alternating current above a safe threshold. Further, it is important to identify defective electrodes as continued use may result in neural and further electrode damage. The present invention presents system and stimulator control mechanisms to prevent damage to neural tissue.

BRIEF DESCRIPTION OF THE DRAWINGS

FIG. 1 is a perspective view of the implanted portion of the preferred retinal prosthesis.

FIG. 2 is a schematic of a circuit for detecting excessive direct current flow.

FIG. 3 is a timing diagram of detecting excessive direct current flow.

FIG. 4 is a schematic of a circuit for detecting build up of low level direct current flow.

FIG. 5 is a timing diagram of detecting build up of low level direct current flow.

FIG. 6 is a schematic of a circuit to detect exceeding a maximum charge per phase.

FIGS. 7 a and 7 b are flowcharts depicting a method for identifying defective electrodes.

FIGS. 8 a and 8 b are schematic representations of the electrode tissue interface.

FIGS. 9 a-9 e are wave forms illustrating the effects of altering the electrode tissue interface.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

The following description is of the best mode presently contemplated for carrying out the invention. This description is not to be taken in a limiting sense, but is made merely for the purpose of describing the general principles of the invention. The scope of the invention should be determined with reference to the claims.

FIG. 1 shows a perspective view of the implanted portion of the preferred retinal prosthesis. While the invention has broad applicability to neural stimulation, the preferred embodiment is a retinal prosthesis. A flexible circuit 1 includes a flexible circuit electrode array 10 which is mounted by a retinal tack (not shown) or similar means to the epiretinal surface. The flexible circuit electrode array 10 is electrically coupled by a flexible circuit cable 12, which pierces the sclera and is electrically coupled to an electronics package 14, external to the sclera.

The electronics package 14 is electrically coupled to a secondary inductive coil 16. Preferably the secondary inductive coil 16 is made from wound wire. Alternatively, the secondary inductive coil 16 may be made from a flexible circuit polymer sandwich with wire traces deposited between layers of flexible circuit polymer. The electronics package 14 and secondary inductive coil 16 are held together by a molded body 18. The molded body 18 may also include suture tabs 20. The molded body 18 narrows to form a strap 22 which surrounds the sclera and holds the molded body 18, the secondary inductive coil 16, and the electronics package 14 in place. The molded body 18, suture tabs 20 and strap 22 are preferably an integrated unit made of silicone elastomer. Silicone elastomer can be formed in a pre-curved shape to match the curvature of a typical sclera. However, silicone remains flexible enough to accommodate implantation and to adapt to variations in the curvature of an individual sclera. The secondary inductive coil 16 and molded body 18 are preferably oval shaped. A strap 22 can better support an oval shaped coil.

The preferred prosthesis includes an external portion (not shown) which includes a camera, video processing circuitry and an external coil for sending power and stimulation data to the implanted portion.

The electronics package 14 includes an integrated circuit for controlling stimulation. The integrated circuit includes an excessive direct current flow (EDCF) detection circuit as shown in FIG. 2. In the implant or saline environment, a certain amount of continuous DC current passing through an electrode array will cause bubbling which may result in damage to neural tissue. The EDCF circuit detects harmful DC leakage levels and transmits this information through the inductive coil 16 to the external electronics. The integrated circuit in electronics package 14 includes a plurality of drivers 202, one for each stimulation electrode 204, in the electrode array 10. When the external electronics initiates an EDCF cycle, switches 206 connect each driver 202 to an electrode driver common line 208. Any DC leakage current from the drivers 202 will flow through the electrode driver common line 208. In a fault condition, a leakage could flow through the driver output to either of the power rails, therefore, both sides are tested in alternate stimulation frames. In a particular test, one of the two currents of threshold values is turned on to charge the node capacitor 210 of the common line. The node capacitor 210 is shown with a dotted line because there is no physical capacitor. The node capacitor 210 is inherent capacitance in the integrated circuit. If there is a leakage path larger than the threshold value in the opposite direction, the potential of the common line is held toward the leakage side. A comparator 212 detects the potential against a predetermined middle potential. The output of the comparator 212 is captured after a predetermined interval, preferably 250 μs, which is then interpreted by EDCF control logic. The integrated circuit further includes power switches such that, in case there is an EDCF error (i.e. the DC leakage level exceeds the set threshold, preferably 100 μA), the external electronics will cut off power to the electrode driver circuits and block the leakage source. FIG. 3, shows the typical timing of the ECDF system. A stimulation cycle 302 is followed by the ECDF cycle 304, followed by a shorting cycle 306. Shorting will bleed off any trace amounts of DC build up.

Electrode bubbling occurs when the voltage across the double layer of the electrode-tissue interface exceeds a threshold voltage window over certain time duration during the stimulation cycles. This threshold voltage window is found to be around ±1.5V for a flexible circuit electrode array 10.

Based on the simplified electrical model of the electrode shown in FIG. 4, we can see that the charge buildup on the electrode is reflected with the voltage across the double layer capacitor Cp 402. During normal stimulation with balanced biphasic current pulses, the maximum voltage across the cap occurs at the end of the first current pulse of amplitude I: $\begin{matrix} {V_{C\quad\max} = {{{{IR}_{p}\left( {1 - {\mathbb{e}}^{{- {Tx}}/\tau_{p}}} \right)} + {{V_{C}(0)}{\mathbb{e}}^{{- {Tx}}/\tau_{p}}}} \approx {{V_{C}(0)} +}}} \\ \left. {{{\frac{Q_{x}}{C}{for}\quad t} ⪡ 1},{{{and}\quad R_{p}} ⪢ 1}} \right) \end{matrix}$

Where Vc(0) is the initial voltage caused by the residue charge left on the capacitor at the end of shorting, τ_(p)=R_(p)C_(p)(404, 402) is the time constant of the leaky double layer, Tx is the pulse duration, and Qx is the total charge of the first stimulation phase flown through the electrode.

When a DC leakage is present, the charge is built up even when the system is not stimulating. The worst case is when the DC leakage is in the same polarity as the first phase stimulation current. If the leakage current is small compared to the stimulation current, which may be the case, the worst case voltage build up on the electrode occurs when the stimulating pulse happens just before the shorting starts. In this case, the maximum electrode voltage is at the start of the second current pulse, which is illustrated in FIG. 5. The maximum voltage is: V_(Cmax) =I _(L) R _(p) +I _(I) _(S) R _(p) e ^(−Tx/τ) ^(p) (1−e ^(−Tx/τ) ^(p) )+(V_(C)(0)−I _(L) R _(p))e ^(−(T−T) ^(P7) ^(−Tx)/τ) ^(p)

Where I_(L) is the leakage current, I_(S) is the stimulation current, T_(P7) is P7 profile duration that includes a shorting duration of T_(SH)=1.4 ms and 0.3 ms for the EDCF check, and T is the stimulation cycle.

A possible electrode voltage map is show in FIG. 5, showing a stimulation cycle in the presence of DC leakage that is smaller than the stimulation current. The upper graph 502 is the total current flowing through the electrode, and the lower graph 504 is the voltage on the double layer capacitor.

The measured parameters C_(p) and R_(p) of the electrodes are preferably 0.25-0.3 uF and 70-80K; but 0.25 uF and 80K to handle the worst case condition, which may result in τ_(p)=20 ms. The shorting time is fixed at 1.4 ms in the preferred embodiment. The stimulation pulse duration Tx may also vary, but the smallest duration is confined by the implant compliance limit and will make the electrode less tolerant to leakage. From a 15KΩ electrode impedance assumption, this will allow a 0.275 ms duration at a current of 400 uA (0.35 mC/cm² maximum charge density). The maximum allowed imbalance of 5% should also be put in the equation. Therefore, in worst case condition, we have: τ_(p)=20 ms, Tx=0.275 ms, I_(S)=400 uA, T_(P7)=1.4 ms, T=8.3 ms From which we get: V_(Cmax)=0.73V_(C)(0)+21.7I _(L)(mA)+0.43(V)   (3) This voltage should be kept below 1.5V. For a margin of safety, we set the maximum allowed electrode voltage across the double layer to be V_(Cmax)=1.0V. The steady state value of the residue voltage on the capacitor depends on the shorting duration. It can be estimated as: V_(C)(0)=V_(SH)(0)e ^(−T) ^(SH) ^(/τ) ^(S)   (4) where τ_(S) is shorting time constant, and V_(SH)(0) is the voltage at the end of the cycle, just before shorting is turned on. In our worst case condition, we have: V_(SH)(0)=V_(Cmax) e ^(−Tx/τ) ^(p) −(I _(S) −I _(L))R _(p)(1−e ^(−Tx/τ) ^(p) )=0.72V_(C)(0)+22.5I _(L)−0.06 Where τ_(S)=R_(IR)C_(P)=15K×0.25 uF=3.75 ms. Therefore, with T_(SH)=1.4 ms, we have from (4) and (5): 0.73V_(C)(0)−22.5I _(L)+0.06=0   (6) From (3) and (6), we can calculate the maximum allowed as I_(Lmax)=12 μA   (7) This maximum allowable leakage current for an individual electrode to ensure that it does not causing electrode bubbling is lower than the EDCF detection circuit (described in reference to FIGS. 2 and 3) threshold current which addresses the total leakage current of all channels. Therefore a test is needed to detect if the leakage level of an individual channel passes the maximum allowed leakage value I_(Lmax) estimated.

The electrode potentials takes some time to stabilize because the time needed to reach the balance between the charge released by shorting and the build up by charge imbalance or leakage. The above analysis on electrode voltages only addresses the steady state condition. Because a DC leakage is considered persistent current flow with or without the presence of stimulation, a simple method is used to measure the electrode voltage caused by the leakage current in quiescent condition in which all stimulation is turned off. This way the disturbance on the electrode voltage caused by the stimulation currents is avoided. On the other hand, the electrode voltage caused by the leakage current I_(L) (if existent) is still a function of the shorting duration. When we use the same shorting strategy as the normal condition with EDCF turned off, i.e., T_(SH)=T_(P7=)1.7 ms, the steady state voltages on the electrode double layer are estimated: V_(SH−)=V_(SH+) e ^(−(T−T) ^(P7) ^()/τ) ^(p) +I _(L) R _(p)(1−e ^(−(T−T) ^(P7) ^()/τ) ^(p) )≈0.718V_(SH+)+22.5I _(L)   (8) V_(SH+)=V_(SH−) e ^(−T) ^(SH) ^(/τ) ^(S) ≈0.635V_(SH−)  (9) Which give us: V_(SH−)=0.50V; V_(SH+)=0.32V Where V_(SH−) and V_(SH+) are the voltages immediately before and after the P7 pulse. Either V_(SH−) or V_(SH+) can be used as the individual electrode leakage threshold; however, V_(SH−) is preferred because of its higher value for better accuracy of the measurement. The voltage driver output V_(DO) is the sum of the I-R drop caused by the real part of the electrode-tissue impedance R_(S) 406 and the electrode voltage on the double layer capacitor V_(C) discussed above. The I-R drop can be calculated as I_(L)R_(ir), where R_(ir) is the electrode impedance.

From (7), the I-R drop caused by the allowed maximum DC leakage current is I_(Lmax)R≈0.12-0.56V constant for electrode impedances ranging 10-40KΩ. However, when the electrode is lifted from the retina, the impedance could be lowered to as small as 3KΩ). For a relatively accurate estimation of the leakage current using the V_(DO) measurement, the I-R drop should be subtracted from the V_(DO) result using the pre-measured electrode impedance values. For simplicity, it may be preferable to ignore the I-R drop effects in this leakage detection protocol and directly use the V_(DO) data as the electrode voltage V_(C). Ignoring the I-R drop will yield a 20-50% inaccuracy of the leakage value estimation that will result in a more conservative monitoring. This will not compromise the safety but will simplify the measurement.

In our electrode impedance measurement protocol, an electrode with impedance 65KΩ or higher is labeled as an open electrode. Stimulation to an open electrode is turned off. However, it must be noted that an electrode with impedance higher than 65KΩ could still bubble because of DC leakage. Assume that the maximum allowed leakage is still 12 μA and the compliance limit for the leakage current is 7.0V, we can calculate with the same method used above that an electrode with impedance value as high as 450KΩ will reach electrode bubbling status. However, the measured voltage is limited to about 4V on the anodic side, which will limit the detectable threshold leakage to electrodes with impedance up to 230KΩ. For example, if the measured electrode impedance is 200KΩ, then a measured V_(DO) of 3.4V or more can be considered a bubbling status. In either case, the electrode impedance measurement should be able to discriminate between a high impedance electrode and an open electrode.

The following method is suggested to label an electrode as a high impedance (HI) electrode: After the regular impedance measurement routine, all “open” electrodes (if any) are measured again using 8.1 μA/1 ms current pulses with the V_(DO) sampling point set at 0.9 ms after the pulse start. An electrode with measured impedance 500KΩ or less (V_(DO)<±4V) shall be tagged as HI electrode, while higher impedance electrodes are tagged as open.

For HI impedance electrodes, the build up voltage on the electrode capacitor is solely from DC leakage because they are not stimulated. Therefore, the maximum allowed electrode voltage is simply V_(SH−)=1V, plus the I-R component when using V_(DO) measurement. Therefore, the threshold for an HI electrode should be V_(DO) (measured at V_(SH−)): VDO| _(V) _(SH−) <=I _(Lmax) R+1≈0.012R(KΩ)+1   (10)

Considering the limited ADC range in the anodic direction, it may be preferable to check all HI electrodes with impedance 200KΩ or higher against the threshold voltage of 200KΩ, which is 3.4V.

For open electrodes, this checking procedure can be omitted.

Referring to FIG. 6, the problem of exceeding maximum charge per phase (MCPP) can be solved with two different methods. In one case, the cathodic and anodic pulse amplitude of each electrode is multiplied by the phase duration and the result is checked against a predetermined MCPP value. If the value is exceeded, the amplitude value is clipped to achieve the limit. This first method is accurate for square waves, but becomes less accurate as the stimulation wave form becomes arbitrary. In another method, a discrete integral is taken in the time representation of the pulse to calculate the charge. If the integral at any point of time exceeds the absolute MCPP value (positive or negative), the amplitude value is either clipped to achieve the limit or zeroed out. Another method that could be used is by an active current monitor on the stimulator device, which limits the current to a particular MCPP. For all these methods, the implementation will be stimulator setting dependant (e.g. Frequency setting) so that the safety checks will adapt to limit the charge to the MCPP in any case.

The circuit shown in FIG. 6, performs an integration of the waveform through capacitance charge. The stimulation signal 610 is amplified in transistors 612 to drive the stimulating electrode 614. Simultaneously, the stimulation signal 610 is amplified in transistors 616 to create a much smaller, but proportional charge signal. Capacitor 618, between the charge signal output and the common electrode 620 is charged by the charge signal. Comparator 622 compares the charge on capacitor 618 with a predetermined maximum charge 624 and generates an over limit signal when the charge on capacitor 618 is over the predetermined maximum charge.

Another way to limit current density is to provide a compromise between the monopolar mode and bipolar mode of stimulation. The method includes setting up stimulation wave forms as in bipolar stimulation mode without disconnecting the common electrode (ground). A portion of the current will flow between the electrodes, and a portion of the current will flow between the electrodes and ground. The ratio of current flow will depend on electrode impedance. This hybrid bipolar mode of stimulation could possibly result in lower thresholds than can be obtained from a true bipolar mode of stimulation, and also has the advantage of greater selectivity than can be obtained from a monopolar mode of stimulation. To set up a safe hybrid bipolar stimulation wave form, the two electrodes concerned should have balanced biphasic currents going in opposite phases at exactly the same times, with the common electrode connected. If the pulse waveforms are balanced by themselves on each electrode but overlap non-contiguously in opposite phases with other electrodes in the array, a resultant unbalanced current could flow through the tissue eventually causing neural tissue damage. A safety check method could be implemented in the external electronics to prevent such unbalanced multipolar waveforms to be sent to the stimulator. The above phenomenon and safety check method is also applicable to multipolar forms of stimulation (i.e. in addition to bipolar).

It is also important to limit the maximum stimulation across all electrodes in an electrode array. While each electrode is individually stimulating at a safe level, there can still be neural damage or even in some cases pain if all electrodes are stimulating at or near their individual maximum level. Hence, it is important to track and limit the sum total stimulation from all electrodes. This is a simple calculation that can be done with software in the external electronics. For each stimulation cycle, all stimulation values are summed and compared with a predetermined maximum. If the sum exceeds the predetermined maximum, the stimulation is reduced, either proportionally across all electrodes, or by limiting electrodes set to higher stimulation levels.

Broken electrode detection can be achieved with a method of monitoring impedance of the electrodes (over time (delta I), as well as comparing impedances of electrodes to its neighboring electrodes in the media, and incorporation of physiological data as observed from physicians). When a broken electrode is found in the system, the stimulator device is commanded to halt stimulation on that broken electrode—with the history of electrode damage logged and persistent in the stimulator controller. Visually, the electrode health is represented through a color/topographical map of the electrode array on a computer system. Optimally, a movie-like data playback of the impedances can be provided. Electrode damage can also consist of shorting between electrodes (as opposed to ‘broken’) which will also be detected through impedance monitoring.

Charge imbalance can be reduced by implementing a 1.4 ms (adjustable, as mentioned in (3)) shorting pulse prior to any stimulation on every stimulation frame of the stimulator. Additionally, the stimulator controller can adjust (and check) the anodic and cathodic current level, using amplitude parameter tables determined from the manufacturing tests of the stimulator, to achieve the best balance. The stimulator controller also checks that there exist no overlapping anodic/cathodic profiles that could cause a charge imbalance at the tissue. Another method of reducing charge imbalance on an electrode is by having the stimulator controller auto-balancing the pulse. Two ways of achieving this are by appending a square pulse after the pulse to compensate for the imbalance or by appending an inverted pulse to compensate. (5) Check against DC flow in tissue from the electrodes is achieved through a combination of the ASIC test, the shorting function, and an initial individual electrode check implemented on startup (or periodically) by the stimulator controller. (6) The issue of implant overheating is handled in multiple ways. Power is controlled on the retinal prosthesis through a feedback loop fed by implant back telemetry. Currently, this is achieved by inferring the implant heat through the current in the shunt regulators of the implant device. Additionally, if a thermistor is placed in the implant device, then the heat can be measured and returned to the controller through the back telemetry link.

Additionally, the instantaneous current output on the stimulator device is limited to a constant value by the controller. This ensures that no amount of instantaneous current is allowed that might expect the stimulator to reset due to lack of power. This instantaneous current limit could also be variable (instead of constant) with appropriate back telemetry and controller design. For system operational modes that do not allow heat control via the shunt current values, the controller performs a check that ensures the implant shunt current level can be set to a safe value immediately prior to the operational mode which doesn't provide shunt current information in the back telemetry. Also, the stimulator controller verifies the voltage setting with an ADC circuit upon any change of voltage to the RF power circuitry.

Referring to FIG. 7 a, the electrode failure detection system includes a table of electrode impedance value that is N, the number of electrodes, by T, the time history stored, and a table of electrode state values with three states, good, questionable, and bad. Each test begins by loading a time value 702 to identify the test. The electrode counter is set to zero 704, and the first electrode is tested 706. The system determines if the electrode impedance is within hard limits 708. These limits are the same for all electrodes. This can be used to catch the most obvious failures. As an illustration, the impedance value returned can range from 0Ω (complete short) to 65,535Ω (complete open), where the nominal value for a good electrode might be in the range of 10,000Ω to 20,000Ω. Here, a lower limit of 2,000Ω and an upper limit of 50,000Ω could be used, where any electrode falling outside these ranges would definitively be experiencing a failure and will be marked bad 710. If the electrode is within the hard limits, the electrode impedance is stored in the table 712. The process is repeated 714 incrementing the electrode counter 716 each time.

Once all electrodes have been tested, the system calculates and stores a median and standard deviation 718. If this is the test has been previously preformed 720, the impedance data is shifted to the next memory location 722. If not, calculate the standard deviation of good electrodes 724, and shift the standard deviation to the previous memory location 726. If the electrode values are close, a very low standard deviation may trigger too many electrodes marked as bad. Hence the standard deviation is compared with a preset minimum 728 and replaced with the minimum if the minimum is higher 722. If the electrode values are far apart, a very high standard deviation may not mark bad electrodes. Hence the standard deviation is compared with a preset maximum 730 and replaced with the maximum if the maximum is lower 732.

It has been observed that an electrode which fails (reading as high as 65 kΩ initially) may give subsequent impedance values which begin to fall, sometimes returning to a nominal, good value. This is apparently due to fluid leaking in the broken area and creating an alternative (and undesirable) conduction path. Thus, any one set of readings may not show all electrodes known obviously to be broken, and a history must be maintained. If an electrode ever exceeds the limits, it is considered permanently failed.

Note the history of the electrodes should not begin until the implantation of the array has stabilized. Impedance readings are very useful through the implantation process, but values may shift drastically, and false failures can impede the process.

It appears many failed electrodes never reach a high value, or reach it and return so quickly it may not be recorded. Thus, additional checks are required.

Referring to FIG. 7 b, the electrode counter is again set to zero 740. If the electrode is already marked bad 742, it cannot be marked good again. For each electrode if the absolute value of the electrode impedance minus the median is greater than an unsafe limit times the standard deviation 744, the electrode marked bad 746. In the preferred embodiment, the unsafe limit is four times the standard deviation. If the absolute value of the electrode impedance minus the median is greater than a questionable limit times the standard deviation 748 and the electrode has measured questionable a predetermined number of time previously 750, the electrode is marked as bad 746. In the preferred embodiment, the questionable limit is three times the standard deviation. The process is repeated until all electrodes have been checked 754, with the electrode counter incremented each time 756. Finally, the standard deviation is recalculated for the remaining good electrodes 758 and stored 760.

In the preferred embodiment, impedance is used to determine the electrode integrity at the interface of the neural stimulator and tissue, as well as the integrity of the electrode stimulation path through the implantable device. However, data obtained both in vitro and in vivo show that these impedance readings are time dependent, and any given temporal snapshot may show failed electrodes as having perfectly nominal values. Furthermore, potentially critical failures such as electrode movement or loss of tissue contact may not be quickly diagnosed using the current methods as the changes in impedance may not be large.

Capacitance measurement is a possible solution since electro-neural interfaces have distinct capacitive characteristics. Referring to FIG. 8 a an interface between an electrode and tissue is actually two interfaces, one from electrode to fluid 802 and a second from fluid to tissue 804 as show in FIG. 8. However, when an electrode lifts off tissue, the resulting circuit resembles a single electrode fluid interface 806 as shown in FIG. 8 b. When an electrode is making good tissue contact, it follows the tissue model shown in FIG. 8 a, with an average value of 15 k-25 kΩ. When an electrode has completely lifted-off, it follows the fluid model shown in FIG. 8 b. It is designated ‘fluid’ since the values & characteristics of an implanted array lifted up in fluid are the same as that in saline in the laboratory.

When an electrode begins to lift off, it begins making contact with the fluid, and thus has two parallel impedance paths. A simple impedance measurement will show only a slight drop at the beginning. However, the phase characteristics of the two paths are different, both in total capacitance value and total phase shift. Thus, the waveform should show the effect.

Referring to FIG. 9 for a simple model on how a capacitor would affect an AC square wave. Initially it may appear simple to measure V₂ and V₁ and establish ΔV as V₂−V₁ and thus a measure of capacitance, as ΔV would increase as the total capacitance in the circuit increases. However, as given in the schematic of a typical electrical model of the electrode-tissue interface, FIG. 8, the portion of electricity going through the capacitor is phase shifted by 90°. The resultant waveform does show a capacitive phase shift, but with rounded peaks potentially anywhere on the waveform, so ΔV would not be a measure of capacitance. A method is required that accounts for this phase shift which could reflect the total capacitance as well as changes in its characteristics.

The difference in capacitance between the various electrical paths which occurs in both healthy and failed electrodes will be manifested as a phase difference in the various waves that sums the resultant measured waveform. This difference can be computed for each stimulation phase, based on the area of the curve of the first derivative, subtracting the baseline waveform where no phase shift is present. Healthy electrodes appear to have distinctive measurable characteristics in both anodic and cathodic phases. These characteristics change significantly when an electrode is losing contact at the neural interface (array lift-off) or is degrading, and thus electrodes which show a significant difference in phase shift are likely experiencing the manifestation of a failure. This method could be used to detect array lift-off potentially before it would be detected by the associated impedance values currently in use.

Accordingly, what has been shown is an improved method of stimulating neural tissue for improved response to brightness. While the invention has been described by means of specific embodiments and applications thereof, it is understood that numerous modifications and variations could be made thereto by those skilled in the art without departing from the spirit and scope of the invention. It is therefore to be understood that within the scope of the claims, the invention may be practiced otherwise than as specifically described herein. 

1. A method of stimulating neural tissue comprising: providing a neural stimulator including a plurality of electrodes suitable to stimulate neural tissue; testing the impedance of all electrodes; calculating an average impedance; calculating a difference from said average impedance for each electrode; and determining bad electrodes based on said difference and a predetermined value.
 2. The method according to claim 1, wherein said average is a median.
 3. The method according to claim 1, wherein said average is a mean.
 4. The method according to claim 1, further comprising calculating a standard deviation of said impedances, and wherein said predetermined value is a multiple of said standard deviation.
 5. The method according to claim 4, wherein said predetermined value is four times said standard deviation.
 6. The method according to claim 1, further comprising repeating said steps of calculating based of a subset of said electrodes after eliminating electrodes known to be bad.
 7. The method according to claims 6, wherein said standard deviation is obtained from all electrodes but applied to said subset of said electrodes.
 8. The method according to claim 1, wherein said standard deviation is the greater of a calculated standard deviation and predetermined minimum value.
 9. The method according to claims 6, further comprising maintaining a record of said impedances overtime and determining bad electrodes by impedance changes over time.
 10. The method according to claim 1, wherein said step of stimulating neural tissue is stimulating visual neurons to form artificial vision.
 11. A method of stimulating neural tissue comprising: providing a neural stimulator including a plurality of electrodes suitable to stimulate neural tissue; determining a safe level for all electrodes; receiving input for neural stimulation; calculating a sum of stimulation on all electrodes based on said input for neural stimulation; reducing the stimulation on each electrode by the amount necessary not to exceed said safe level for all electrodes; and stimulating said neural tissue according to a reduced stimulation level.
 12. The method according to claim 11, where said step of reducing comprises reducing the stimulation on each electrode in equal proportion.
 13. The method according to claim 11, wherein said step of receiving input for neural stimulation comprises receiving input from multiple sources and said step of calculating a sum of stimulation includes a sum from all sources.
 14. The method according to claim 11, wherein said step of stimulating neural tissue is stimulating visual neurons to form artificial vision.
 15. A method of stimulating Neural tissue comprising: providing a neural stimulator including a plurality of electrodes suitable to stimulate neural tissue; receiving input for neural stimulation; determining an desired cathodic pulse based on said input; calculating a anodic pulse to balance said cathodic pulse; and Stimulating neural tissue according to said cathodic and anoodic pulses.
 16. The method according to claim 15, wherein said anodic pulse has a predetermined amplitude and varies pulse width to balance said cathodic pulse.
 17. The method according to claim 15, further comprising shorting said electrodes to ground after said anodic pulse.
 18. The method according to claim 15, further comprising appending a pulse to compensate for imbalance.
 19. The method according to claim 15, wherein said step of stimulating neural tissue is stimulating visual neurons to form artificial vision.
 20. A neural stimulator comprising: a neural stimulation controller; a plurality of electrodes suitable to stimulate neural tissue driven by said neural stimulation controller; means for testing the impedance of all electrodes; means for calculating an average impedance; means for calculating a difference from said average impedance for each electrode; and means for determining bad electrodes based on said difference and a predetermined value.
 21. A neural stimulator comprising a neural stimulation controller; a plurality of drivers controlled by said neural stimulation controller; a plurality of electrodes suitable to stimulate neural tissue driven by said plurality of drivers; a plurality of switches connection the output of said drivers to a common line; and a comparator comparing voltage on said common line to a predetermined reference voltage.
 22. The neural stimulator according to claim 21, further comprising a capacitor coupling said common line to a ground.
 23. The neural stimulator according to claim 21, further comprising switching means for disabling said plurality of drivers when leakage current is detected by said comparator.
 24. The neural stimulator according to claim 21, further comprising transmitting means for transmitting a error signal when leakage current is detected by said comparator.
 25. A method of stimulating neural tissue comprising: providing a neural stimulator including a plurality of electrodes suitable to stimulate neural tissue; testing the capacitance of all electrodes; recording changes in capacitance over time; and determining bad electrodes based on said change in capacitance.
 26. The method according to claim 25, wherein said change in capacitance is measured as a phase shift.
 27. A method of stimulating neural tissue comprising: providing a neural stimulator including a plurality of electrodes suitable to stimulate neural tissue; determining a maximum charge per phase for each electrode; receiving input for neural stimulation; calculating a discrete integral of the wave form of the input; reducing the stimulation on each electrode by the amount necessary not to exceed said safe level for all electrodes; and stimulating said neural tissue according to a reduced stimulation level.
 28. A method of stimulating neural tissue comprising: providing a neural stimulator including a plurality of electrodes suitable to stimulate neural tissue; stimulating neural tissue in accordance with external input; testing total power dissipation of said neural stimulator; comparing said total power dissipation to a predetermined maximum power dissipation; and reducing stimulation if the total power dissipation exceeds said predetermined maximum power dissipation.
 29. The method according to claim 28, wherein reducing stimulation is discontinuing stimulation.
 30. The method according to claim 28, wherein testing total power dissipation is controlled via an RF power control loop.
 31. The method according to claim 28, wherein testing total power dissipation is testing with an instantaneous current sum check.
 32. The method according to claim 28, wherein testing total power dissipation is testing with a thermistor in the neural stimulator.
 33. A method of stimulating neural tissue comprising: providing a neural stimulator including a plurality of stimulating electrodes and one common electrode, suitable to stimulate neural tissue; stimulating neural tissue in accordance with external input using balanced biphasic pulses in opposite phases at the same time across said stimulating electrodes; and disallowing stimulation waveforms on said electrodes that overlap non-contiguously during opposite phases with other said electrodes in the array in a bipolar or multipolar configuration.
 34. A method of stimulating neural tissue comprising: providing a neural stimulator including a plurality of electrodes suitable to stimulate neural tissue; measuring electrode impedance using driver output voltage; stimulating neural tissue according to external input; measuring an after stimulation driver output voltage; and calculating leakage current using electrode impedance and after stimulation driver output voltage. 